﻿namespace GSC.WebControls
{
    using System;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.ComponentModel;
    /// <summary>
    /// TableCell类型的模板拥有者。
    /// </summary>
    /// <remarks>TableCell类型的模板拥有者。</remarks>
    public sealed class TemplateTableCellOwner : TableCell, INamingContainer
    {
        private Control _owner;
        /// <summary>
        /// 初始化TableCell类型的模板拥有者。
        /// </summary>
        /// <remarks>初始化TableCell类型的模板拥有者。</remarks>
        public TemplateTableCellOwner()
        {
        }
        /// <summary>
        /// 初始化TableCell类型的模板拥有者。
        /// </summary>
        /// <remarks>初始化TableCell类型的模板拥有者。</remarks>
        /// <param name="owner">设置拥有者对象。</param>
        public TemplateTableCellOwner(Control owner)
        {
            this._owner = owner;
        }
        /// <summary>
        /// 获取拥有者对象。
        /// </summary>
        /// <remarks>获取拥有者对象。</remarks>
        /// <value>System.Web.UI.Control</value>
        [Browsable(false)]
        public Control Owner
        {
            get
            {
                return _owner;
            }
        }
    }
}